-- GENERATED SPELL FOR [Noxious Slime] --


function spell0_12221(pUnit, Event) --@Noxious Cloud,Self--
pUnit:FullCastSpellOnTarget(21070,pUnit)
pUnit:RegisterEvent('Sorts_12221', 20000, 1)
end

function Sorts_12221(pUnit, Event)
local choix_sorts_12221 = math.random(0, 0)
if choix_sorts_12221 == 0 then
pUnit:RegisterEvent('spell0_12221', 1, 1)
end
end

function mob12221_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12221', math.random(1500, 3000), 1)
end

function mob12221_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12221_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12221_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12221, 1, 'mob12221_Action')
RegisterUnitEvent(12221, 2, 'mob12221_Leave')
RegisterUnitEvent(12221, 3, 'mob12221_Kill')
RegisterUnitEvent(12221, 4, 'mob12221_Die')
